package com.hp.gxw.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author huangping
 * @since 2023-10-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class SettlementOrderDetails implements Serializable {

    private static final long serialVersionUID=1L;

    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    @JsonSerialize(using = ToStringSerializer.class)
    private Long masterId;

    /**
     * MES销售订单子表id
     */
    private String detailId;

    /**
     * 批号
     */
    private String cbatch;

    /**
     * 结单类型
     */
    private String settlementType;

    /**
     * 存货编码
     */
    private String cinvcode;

    /**
     * 存货名称
     */
    private String cinvname;

    /**
     * 类型
     */
    private String type;


    /**
     * 结算数量
     */
    private BigDecimal settlementQty;

    /**
     * 结算金额
     */
    private BigDecimal settlementAmount;

    /**
     * 是否确认价格
     */
    private Boolean completFlag;

    /**
     * 是否实物
     */
    private String sfsw;
    /**
     * 是否来料
     */
    private String sfll;
    /**
     * 来料日期
     */
    private String llrq;
    /**
     * 产值计算类型
     */
    private String czjslx;
    /**
     * 设备类型
     */
    private String sblx;
    /**
     * 特殊备注
     */
    private String tsbz;

    /**
     * 良率
     */
    private BigDecimal lv;

    /**
     * 订单数量
     */
    private BigDecimal qty;

    /**
     * 折扣率
     */
    private BigDecimal zkv;

    @TableField(exist = false)
    private List<SettlementOrderProcess> process;
}
